package com.llt.impl;

import com.llt.mapper.ClassFirstMapper;
import com.llt.pojo.ClassAll;
import com.llt.pojo.ClassFirst;
import com.llt.service.ClassFirstService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ClassFirstImpl implements ClassFirstService {

    @Autowired
    private ClassFirstMapper classFirstMapper;
    @Override
    public int addClassFirst(ClassFirst classFirst) {
        return classFirstMapper.addClassFirst(classFirst);
    }

    @Override
    public List<ClassFirst> classFirstSelectAll() {
        return classFirstMapper.classFirstSelectAll();
    }

    @Override
    public ClassFirst queryByName(String name) {
        return classFirstMapper.queryByName(name);
    }

    @Override
    public Integer updateClassFirst(ClassFirst classFirst) {
        return classFirstMapper.updateClassFirst(classFirst);
    }

    @Override
    public int deleteClassFirst(int id) {
        return classFirstMapper.deleteClassFirst(id);
    }

    @Override
    public List<ClassAll> classAll() {

        List<ClassAll> objects = classFirstMapper.classAll();


        return objects;
    }
}
